import request from '@/utils/request'

export function getWorkTaskList(params: any) {
  return request({
    url: '/worktask/getWorkTaskList',
    method: 'get',
    params,
  })
}

export function EditWorktaskMemo(params: any) {
  return request({
    url: '/worktask/EditWorktaskMemo',
    method: 'post',
    params,
  })
}

export function EditWorkStartDate(params: any) {
  return request({
    url: '/worktask/EditWorkStartDate',
    method: 'post',
    params,
  })
}
export function allSubmitFinishSave(params: any) {
  return request({
    url: '/worktask/allSubmitFinishSave',
    method: 'post',
    params,
  })
}
export function allAuditSubmit(params: any) {
  return request({
    url: '/worktask/allAuditSubmit',
    method: 'post',
    params,
  })
}

export function editSubmitList(params: any) {
  return request({
    url: '/worktask/editSubmitList',
    method: 'post',
    params,
  })
}

export function saveWorkTask(params: any) {
  return request({
    url: '/worktask/saveWorkTask',
    method: 'post',
    params,
  })
}

export function takeWorkOrder(params: any) {
  return request({
    url: '/Worktask/takeWorkOrder',
    method: 'post',
    params,
  })
}

export function cancelWorkTask(params: any) {
  return request({
    url: '/worktask/cancelWorkTask',
    method: 'post',
    params,
  })
}

export function getAssignOrderBtns(params: any) {
  return request({
    url: '/worktask/getAssignOrderBtns',
    method: 'get',
    params,
  })
}

export function getWorkTaskSet(params: any) {
  return request({
    url: '/worktask/getWorkTaskSet',
    method: 'get',
    params,
  })
}

export function getWorkTaskLists(params: any) {
  return request({
    url: '/worktask/getWorkTaskLists',
    method: 'get',
    params,
  })
}

export function getList(params: any) {
  return request({
    url: '/Worktask/getList',
    method: 'get',
    params,
  })
}

export function doEdit(data: any) {
  return request({
    url: '/worktask/doEdit',
    method: 'post',
    data,
  })
}

export function doDelete(data: any) {
  return request({
    url: '/worktask/doDelete',
    method: 'post',
    data,
  })
}

export function worktasklistEdit(data: any) {
  return request({
    url: '/worktask/worktasklistEdit',
    method: 'post',
    data,
  })
}

export function CheckTaskSubmit(data: any) {
  return request({
    url: '/Worktask/CheckTaskSubmit',
    method: 'post',
    data,
  })
}
